/*
-----------------------------------------------------------------------------
This source file is part of Labor3D
(Labor 3D Graphics Engine)

Copyright (c) 2009-2020 Rock Mao
* creator : Rock Mao
* created : 2009-5-2   22:29
* filename: LaborVertexBuffer.cpp
-----------------------------------------------------------------------------
*/
#include "../include/Renderer/LaborVertexBuffer.h"
NAMESPACE_LABOR3D_BEGIN

//---------------------------------------------------------------------
CLVertexBuffer::CLVertexBuffer(size_t vertexSize,  
							   size_t numVertices, EHB_Usage usage, 
							   bool useSystemMemory, bool useShadowBuffer) 
							   : CLHardwareBuffer(usage, useSystemMemory, useShadowBuffer), 
							   mNumVertices(numVertices),
							   mVertexSize(vertexSize)
{
	// Calculate the size of the vertices
	mSizeInBytes = mVertexSize * numVertices;

	// Create a shadow buffer if required
	//if (mUseShadowBuffer)
	//{
	//	mpShadowBuffer = OGRE_NEW DefaultHardwareVertexBuffer(mVertexSize, 
	//		mNumVertices, HardwareBuffer::HBU_DYNAMIC);
	//}
}

//---------------------------------------------------------------------
CLVertexBuffer::~CLVertexBuffer()
{

}

NAMESPACE_LABOR3D_END